-- GENERATED SPELL FOR [Franklin the Friendly] --


function spell0_14529(pUnit, Event) --@Entropic Sting,Self--
pUnit:FullCastSpellOnTarget(23260,pUnit)
pUnit:RegisterEvent('Sorts_14529', 20338, 1)
end

function spell1_14529(pUnit, Event) --@Fool\'s Plight,n/a--
pUnit:FullCastSpellOnTarget(23504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14529', 569, 1)
end

function Sorts_14529(pUnit, Event)
local choix_sorts_14529 = math.random(0, 1)
if choix_sorts_14529 == 0 then
pUnit:RegisterEvent('spell0_14529', 1, 1)
end
if choix_sorts_14529 == 1 then
pUnit:RegisterEvent('spell1_14529', 1, 1)
end
end

function mob14529_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14529', math.random(1500, 3000), 1)
end

function mob14529_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14529_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14529_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14529, 1, 'mob14529_Action')
RegisterUnitEvent(14529, 2, 'mob14529_Leave')
RegisterUnitEvent(14529, 3, 'mob14529_Kill')
RegisterUnitEvent(14529, 4, 'mob14529_Die')
